package src.twice;

import java.io.File;

public class FileTest01 {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\22528\\Desktop","02.xlsx");
        if(file.exists()){
            String name = file.getName();
            long length = file.length();
            boolean hidden = file.isHidden();
            System.out.println(name+","+length+","+hidden);
        }else{
            System.out.println("该文件不存在");
        }
    }
}
